package com.example.huajia.wx.config;

import com.rabbitmq.client.ConnectionFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitMQConfig {
    @Bean
    public ConnectionFactory getFactory(){
        ConnectionFactory factory = new ConnectionFactory();
//        factory.setHost("192.168.216.29");//Linux主机的IP地址
        factory.setHost("10.66.128.40");//Linux主机的IP地址
        factory.setPort(5672);
        return factory;
    }
}
